package com.taobao.sinan.dal;

import java.util.Map;
import java.util.TreeMap;

public class App {
	private String name;

	private boolean isExecutable = false;

	private Map<String, LogicTable> tables = new TreeMap<String, LogicTable>();

	public String getName() {
		return name;
	}

	public boolean isExecutable() {
		return isExecutable;
	}

	public void setExecutable(boolean isExecutable) {
		this.isExecutable = isExecutable;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Map<String, LogicTable> getTables() {
		return tables;
	}

	public boolean containsTable(String tablename) {
		return tables.containsKey(tablename);
	}

	public void addTable(LogicTable table) {
		tables.put(table.getName(), table);
	}
}
